import request from '@/utils/request'

// 查询代收列表
export function merchantData(data) {
  return request({
    url: '/merchant/payment/fee/page',
    method: 'post',
    data
  })
}

//新增代收

export function addMerchantData(data) {
  return request({
    url: '/merchant/payment/fee',
    method: 'post',
    data
  })
}

// 批量代收
export function batchPayment(data) {
  return request({
    url: '/manage/batch/sure/payment/fee',
    method: 'post',
    data
  })
}

// 查询代付列表
export function paymentData(data) {
  return request({
    url: '/merchant/payment/payment/page',
    method: 'post',
    data
  })
}
// 查询商户列表

export function merchantList(query) {
  return request({
    url: '/manage/merchant/list',
    method: 'get',
    params: query
  })
}
// 提现列表

export function withdrawalData(data) {
  return request({
    url: '/merchant/apply/balance/withdrawal/record_page',
    method: 'post',
    data
  })
}
// 提现审核
export function processWithdrawal(data) {
  return request({
    url: '/manage/sure/balance/withdrawal',
    method: 'post',
    data
  })
}
// 新增提现
export function addWithdrawal(data) {
  return request({
    url: '/merchant/apply/balance/withdrawal',
    method: 'post',
    data
  })
}
// 代收确认
export function paymentConfirm(data) {
  return request({
    url: '/manage/sure/payment/fee',
    method: 'post',
    data
  })
}

// 代付确认
export function payForAnother(data) {
  return request({
    url: '/manage/sure/payment/payment',
    method: 'post',
    data
  })
}

// 新增代付
export function addPayment(data) {
  return request({
    url: '/merchant/payment/payment',
    method: 'post',
    data
  })
}
// 拒绝代付
export function refusePayment(data) {
  return request({
    url: '/manage/sure/payment/refuse_payment',
    method: 'post',
    data
  })
}
// /代付批量拒绝
export function bathRefusePayment(data) {
  return request({
    url: '/manage/sure/payment/bath_refuse_payment',
    method: 'post',
    data
  })
}
// // 代收导出

// export function feeExport(data) {
//   return request({
//     url: '/merchant/payment/fee/export',
//     method: 'post',
//     data
//   })
// }
// // 代付导出

// export function paymentExport(data) {
//   return request({
//     url: '/merchant/payment/payment/export',
//     method: 'post',
//     data
//   })
// }
// 代付导出状态修改

export function changeExport(data) {
  return request({
    url: '/manage/sure/payment/export_status_modify',
    method: 'post',
    data
  })
}
// 代付导入

export function importFile(data) {
  return request({
    url:'/manage/payment/payment/import',
    method:'post',
    data
  })
}
// 代付转三方
export function transferThird(data){
  return request({
    url:'/manage/payment/transmit',
    method:'post',
    data
  })
}